package com.itheima.service.db.impl;

import com.itheima.domain.db.FreezeNews;
import com.itheima.mapper.FreezeNewsMapper;
import com.itheima.service.db.FreezeService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class FreezeServiceImpl implements FreezeService {

    @Autowired
    private FreezeNewsMapper freezeNewsMapper;

    //保存冻结消息表
    @Override
    public void saveFreezeNews(FreezeNews freezeNews) {
        //保存冻结消息表格
        freezeNewsMapper.insert(freezeNews);

    }

    //将解冻信息更新在冻结表中
    @Override
    public void updateUnFreezeNews(FreezeNews freezeNews) {

        freezeNewsMapper.insert(freezeNews);

    }
}
